const router = [
  {
    path: '/frontHome',
    name: 'FrontHome',
    component: () => import('../views/front/Home'),
    meta: {
      required: true,
      role: ['服务员','领班'],
      isBack:false//显示前台导航
    },
  },
  {
    path: '/takingOrder/:seatnum',// 点菜
    name: 'TakingOrder',
    component: () => import('../views/front/TakingOrder'),
    meta: {
      required: true,
      role: ['服务员','领班'],
      isBack:false
    },
  },
  {
    path: '/menuDetail',
    name: 'MenuDetail',
    component: () => import('../views/front/MenuDetail'),
    meta: {
      required: true,
      role: ['服务员','领班'],
      isBack:false
    },
  },
  {
    path: '/seats',// 餐桌页面
    name: 'Seats',
    component: () => import('../views/front/Seats'),
    meta: {
      required: true,
      role: ['服务员','领班'],
      isBack:false
    },
  },
  {
    path: '/takingOut', //外卖
    name: 'TakingOut',
    component: () => import('../views/front/TakingOut'),
     meta: {
      required: true,
      role: ['服务员','领班'],
      isBack:false
    },
  },
  {
    path: '/vipInfo',  //会员信息
    name: 'VIPInfo',
    component: () => import('../views/front/VIPInfo.vue'),
     meta: {
      required: true,
      role: ['服务员','领班'],
      isBack:false
    },
  },
  {
    path: '/personalCenter',  //个人中心
    name: 'PersonalCenter',
    component: () => import('../views/front/PersonalCenter.vue'),
     meta: {
      required: false,
      role: ['服务员','领班'],
      isBack:false
    },
  },
  {
    path: '/paySuccesss',//结账成功的页面
    name: 'PaySuccess',
    component: () => import('../views/front/PaySuccess'),
     meta: {
      required: true,
      role: ['服务员','领班'],
      isBack:false
    },
  }

];
export default router
